package com.chenglu.android.mine.beans.mvp.model;





import com.chenglu.android.bean.SmsCodeBean;
import com.chenglu.android.common.net.RetrofitClientCL;
import com.chenglu.android.mine.bean.AmountTypeBean;
import com.chenglu.android.mine.bean.BeansDetailBean;
import com.chenglu.android.mine.bean.PutFileBean;
import com.chenglu.android.mine.bean.ReturnStringBean;
import com.chenglu.android.mine.bean.UserInfoBean;
import com.chenglu.android.mine.beans.mvp.contract.BeansContract;

import java.io.File;
import java.util.Map;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;

/**
 * @author: lyj
 * @Created by Copyright 2023/7/27 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public class BeansModel implements BeansContract.BeansModel {


    @Override
    public Observable<SmsCodeBean> getActiveBeans(String token) {
        return RetrofitClientCL.getInstance().getApi().getActiveBeans(token);
    }

    @Override
    public Observable<AmountTypeBean> getAmountTypeList(String token, Map<String,String> map) {
        return RetrofitClientCL.getInstance().getApi().getAmountTypeList(token, map);
    }

    @Override
    public Observable<BeansDetailBean> getBeansDetails(String token) {
        return RetrofitClientCL.getInstance().getApi().getBeansDetails(token);
    }


    @Override
    public Observable<UserInfoBean> getUserInfo(String token) {
        return RetrofitClientCL.getInstance().getApi().getUserInfo(token);
    }
}
